package net.chathu.airgw.packets.gw.serverpackets 
{
	/**
	 * ...
	 * @author ze
	 */
	public class QuitPacket implements ISendableIRCPacket 
	{
		private var _userHost:String;
		private var _reason:String;
		public function QuitPacket(userHost:String, reason:String) 
		{
			_userHost = userHost;
			_reason = reason;
		}
		
		public function getMessage():String
		{
			//FONTOS! QUIT csomagnal nem kell prefix a nick elé! Voice/op jelzés itt nincs!
			
			//:Bijoux!-Bijoux@p549458E6.dip.t-dialin.net QUIT :""
			return ":" + _userHost + " QUIT :" + _reason  + "\n";
		}		
	}
}